import { Post } from '../entities/post.entity';
import { IntersectionType, PartialType, PickType } from '@nestjs/swagger';
import { PaginationReqDto } from '@/types/globalDto.dto';

export class AdminPostPageDto extends PartialType(
  IntersectionType(PickType(Post, ['title', 'postId']), PaginationReqDto),
) {}

export class AdminPostResDto {
  /**
   * 总数
   */
  total: number;

  /**
   * 列表
   */
  list: Post[];
}
